package binary;

public class BinaryDemo {
    public static void main(String[] args) {
        System.out.println(Integer.toBinaryString(2147483647));
        int max = Integer.MAX_VALUE;
        int min = Integer.MIN_VALUE;
        System.out.println(Integer.toBinaryString(max));
        System.out.println(Integer.toBinaryString(min));
        System.out.println(Integer.toBinaryString(-1));

        int a = -45;
        System.out.println(Integer.toBinaryString(a));


        int m = 0b10001111011100110001010;
        int n = 0x47b98a;
        System.out.println(n);
        System.out.println(m);
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toHexString(m));
        System.out.println(Integer.toHexString(m));


    }
}
